﻿#ifndef SHANDSHAKEWIDGET_H
#define SHANDSHAKEWIDGET_H

#include <QObject>
#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QGridLayout>
#include <QPushButton>
#include "quiqss.h"
#include "capcontroldefine.h"


class QHandShakeWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QHandShakeWidget(int i32AxisNo,QString sAxisName,QWidget *parent = nullptr);

    ~QHandShakeWidget();

    void rcvFrameData(st_rcvdata rcvdata);



signals:

    void signal_sethandshake(int i32AxisNo,int i32value,int datalen);

    void signal_startTest(int i32Axis,int workmode,int data,int data1);


public slots:

    void onSetParamButtonClick();

    void onStopBtnClick();

private:
    void InitUI();

private:
    QLineEdit* _pValueEdit;


    QPushButton* _pSetParamButton;
    QPushButton* _pStopButton;

    QLabel* _pShowInfoLabel;

private:
    int _i32AxisNo;
    QString _sAxisName;


    float _lfPosdata;
    float _lfSpeeddata;

    st_rcvdata _rcv_capdata;

    int _i32FrameCnt;
};

#endif // AXISPARAMWIDGET_H
